package com.qc31.monitorlib.ui.photo

import androidx.activity.viewModels
import autodispose2.autoDispose
import com.qc31.baselib.utils.startActivityTo
import com.qc31.comlib.Keys
import com.qc31.monitorlib.R
import com.qc31.monitorlib.base.BaseReportActivity
import com.qc31.monitorlib.base.BaseReportViewModel

/** @Author Jasper @Time 2020/12/10 @Desc 照片查询 */
class PhotosActivity : BaseReportActivity() {
    private val mViewModel by viewModels<PhotosViewModel>()

    override val mBaseViewModel: BaseReportViewModel
        get() = mViewModel

    override val titleId: Int
        get() = R.string.title_report_photo

    override fun initView() {
        super.initView()
        mViewModel.dataObserver().autoDispose(scopeProvider).subscribe {
            startActivityTo<PhotoInfoActivity>(this) {
                putExtra(Keys.INTENT_TITLE, mViewModel.carName)
            }
        }
    }


}